package core.model.events
{
import flash.events.Event;

public class PlayerModelEvent extends Event
{    
	public static const LEVEL_CHANGED:String = "levelChanged";
	
	public static const MAX_ENERGY_CHANGED:String = "maxEnergyChanged";
    
    public static const ITEM_NUM_CHANGED:String = "itemNumChanged";
	
	public static const ADD_ITEM:String = "addItem";
	
	public static const REMOVE_ITEM:String = "removeItem";
	
	public function PlayerModelEvent(type:String)
	{
		super(type, false, false);
	}
	
	public var params:*;
    
    public static function getItemNumChangedEventType(key:String):String
    {
        return ITEM_NUM_CHANGED + "_" + key;
    }
}
}